/********************************************************************************
 *      Copyright:  (C) 2025 LingYun IoT System Studio
 *                  All rights reserved.
 *
 *       Filename:  ds18b20_get.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(28/03/25)
 *         Author:  Guo Wenxue <guowenxue@gmail.com>
 *      ChangeLog:  1, Release initial version on "28/03/25 20:47:40"
 *                 
 ********************************************************************************/

#ifndef _DS18B20_GET_H_
#define _DS18B20_GET_H_

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>

#include "logger.h"
#include "struct.h"

typedef int (* pack_proc_t)(data_t *data, uint8_t *buf, int len);
/*获取温度 */
int  get_temper(data_t *data);

/*获取时间 */
long get_time(data_t *data);

#endif
